package com.baidu.shop.utils;

/**
 * @Description:
 * @ClassName: StringUtil
 * @Author: User
 * @date: 2020.08.31 19:16
 * @version: 1.0
 */
public class StringUtil {
    public static Boolean isEmpty(String str){
        return str==null || "".equals(str);
    }
    public static Boolean isNotEmpty(String str){
        return str != null && !"".equals(str);
    }

    public static Integer getInteger(String str){
        if (isNotEmpty(str)){
            return Integer.parseInt(str);
        }return 0;
    }

}
